<%@page pageEncoding="UTF-8" isELIgnored="false"%>
<%@include file="/common.jsp" %>
<html>
<head>
<%@include file="/common_meta.jsp" %>
<%@include file="/quiz_common_meta.jsp" %>
<meta name="robots" content="noarchive"/>
<title>${f:h(appNm)} - クイズ編集リスト</title>
</head>
<body>
<div data-role="page">
<div data-role="header">クイズの内容<a href="/quiz/" data-role="button" data-icon="home" data-iconpos="notext" rel="external" class="ui-btn-right jqm-home" rel="external"></a></div>
<div data-role="content">
<h5>クイズのタイトル：</h5>
${f:h(quiz.quizName)}<br/>
<br/>
<h5>クイズの説明：</h5>
${f:h(quiz.contents)}<br/>
<br/>
<h5>パスコード：</h5>
${f:h(quiz.passcd)}<br/>
<span class="attention-words">(※クイズ参加者の参加権を確認するパスコードです)</span><br/>
<br/>
<a href="${f:url('editQuestion/0')}" rel="external">[クイズを追加する]</a><br/>
<c:if test="${quiz.released}">
<a href="${f:url('doPrivate')}" rel="external">[クイズを非公開にする]</a><br/>
</c:if>
<c:if test="${!quiz.released}">
<a href="${f:url('release')}">[クイズを公開する]</a><br/>
</c:if>
<c:forEach var="e" items="${questions}">
<c:set var="editUrl" value="/quiz/editQuestion/${f:h(e.questionNo)}"/>
<c:set var="deleteUrl" value="/quiz/deleteQuestion/${f:h(e.questionNo)}"/>
<ol data-role="listview" data-inset="true">
<li data-role="list-divider"><h2>第<c:out value="${e.questionNo}"/>問</h2><p>${f:h(e.question)}</p></li>
<li>${f:h(e.answer1)}<c:if test="${f:h(e.answer) == '1'}"><span class="ui-li-count">★</span></c:if></li>
<li>${f:h(e.answer2)}<c:if test="${f:h(e.answer) == '2'}"><span class="ui-li-count">★</span></c:if></li>
<li>${f:h(e.answer3)}<c:if test="${f:h(e.answer) == '3'}"><span class="ui-li-count">★</span></c:if></li>
<li>${f:h(e.answer4)}<c:if test="${f:h(e.answer) == '4'}"><span class="ui-li-count">★</span></c:if></li>
</ol>
<div  data-inset="true">
<a href="${f:url(editUrl)}" data-role="button" data-inline=“true”  rel="external" style="font-size:12px;">編集</a>
<a href="${f:url(deleteUrl)}" data-role="button" data-inline=“true”  rel="external" style="font-size:12px;">削除</a>
</div>
</c:forEach>
</div>
<div data-role="footer">Powerd by Slim3</div>
</div>
</body>
</html>
